//
//  LSZMineHeaderCell.m
//  JK九酷云头条
//
//  Created by 九酷 on 2017/11/9.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZMineHeaderCell.h"

@implementation LSZMineHeaderCell
-(id)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        UIImageView * imageViewHeader = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, 200)];
        imageViewHeader.userInteractionEnabled = YES;
        imageViewHeader.backgroundColor = RGBColor(72,195, 121);
        [self addSubview:imageViewHeader];
        
        self.imageViewHeaderPortrait = [[UIImageView alloc]initWithFrame:CGRectMake((ScreenWidth-60)/2, 60, 60, 60)];
        self.imageViewHeaderPortrait.image = [UIImage imageNamed:@"个人中心_头像"];
        [self.imageViewHeaderPortrait.layer setCornerRadius:30];
        [self.imageViewHeaderPortrait.layer  setMasksToBounds:YES];
        self.imageViewHeaderPortrait.userInteractionEnabled = YES;
        [self addSubview:self.imageViewHeaderPortrait];
        
        self.labelName = [[UILabel alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.imageViewHeaderPortrait.frame)+8, ScreenWidth, 17)];
//        self.labelName.font = FONT_14;
        self.labelName.textColor = [UIColor whiteColor];
        self.labelName.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.labelName];
        
        UIImageView * imageGoldCOINS = [[UIImageView alloc]initWithFrame:CGRectMake(ScreenWidth/2-100, imageViewHeader.frame.size.height-24-20+5, 24, 24)];
        imageGoldCOINS.image = [UIImage imageNamed:@"个人中心_金币"];
        [self addSubview:imageGoldCOINS];
        
         self.labelGoldCOINS = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imageGoldCOINS.frame), imageViewHeader.frame.size.height-40+5, 85, 15)];
         self.labelGoldCOINS.textColor = [UIColor whiteColor];
        [self addSubview: self.labelGoldCOINS];
        
        UIImageView * imageMoney = [[UIImageView alloc]initWithFrame:CGRectMake(ScreenWidth/2+20, imageViewHeader.frame.size.height-24-20+5, 24, 24)];
        imageMoney.image = [UIImage imageNamed:@"个人中心_钱"];
        [self addSubview:imageMoney];
        
         self.labelMoney = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(imageMoney.frame), imageViewHeader.frame.size.height-40+5, 85, 15)];
         self.labelMoney.textColor = [UIColor whiteColor];
        [self addSubview: self.labelMoney];
    }
    return self;
}

@end
